<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>效果库</title>
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
	<link href="../css/mui.css" rel="stylesheet"/>
	<link href="../css/mui.min.css" rel="stylesheet"/>
	<link href="../css/mui-icons-extra.css" rel="stylesheet"/>
	<link href="../css/app.css" rel="stylesheet"/>
	<style type="text/css">
	</style>
</head>
<body>
	<!-- 头部TITLE -->
	<header class="app-header">
		<b>效果库</b>
		&nbsp; &nbsp; 
		<span onclick="jumpToMarketHistory()">足迹</span>
	</header>
	<!-- 头部TITLE -->
	
	<!-- 主体部分 -->
	<div class="app-video-bg" id="refresh">
	</div>
	<!-- 更多按钮 -->
	<p id="more"></p>
	<br><br>
	<!-- 主体部分 -->
	
	<!-- 底部菜单 -->
	<nav class="mui-bar mui-bar-tab">
		<a class="mui-tab-item" onclick="jumpToIndex()">
			<span class="mui-icon mui-icon-home"></span>
			<span class="mui-tab-label">首页</span>
		</a>
		<a class="mui-tab-item mui-active" onclick="jumpToMarket()">
			<span class="mui-icon mui-icon-download"></span>
			<span class="mui-tab-label">库</span>
		</a>
		<a class="mui-tab-item" onclick="jumpToReward()">
			<span class="mui-icon mui-icon-spinner-cycle"></span>
			<span class="mui-tab-label">奖励</span>
		</a>
		<a class="mui-tab-item" onclick="jumpToMy()">
			<span class="mui-icon mui-icon-contact"></span>
			<span class="mui-tab-label">我的</span>
		</a>
	</nav>
	<!-- 底部菜单 -->
</body>
</html>

<script src="../js/mui.js"></script>
<script src="../js/app.js"></script>
<script src="../js/views/view.js"></script>
<script src="../js/views/market.js"></script>
<script type="text/javascript">
	mui.plusReady(function () {
		// //自动加载
		// (function($, owner) {
		// }(mui, window.app = {}));
		// 初始化
		mui.init({
			//下拉、上拉刷新
			pullRefresh: {
				container: "#refresh",
				down: { //下拉刷新
					style: "circle",
					height: 50,
					auto: true,
					contentrefresh: "视频正在加载...",
					contentnomore: '没有更多视频了',
					callback: async function () { 
						getMarket();
						mui('#refresh').pullRefresh().endPulldownToRefresh();
					}
				},
				up: { //上拉加载
					height: 50, 
					auto: false, 
					contentrefresh: "更多视频正在加载...", 
					contentnomore: '没有更多数据了', 
					callback: async function () { 
						getMarket();
					}
				}
			}
		});
	});
</script>